package com.myproject.thread.lock;

import java.util.concurrent.atomic.AtomicInteger;
import java.util.concurrent.locks.ReentrantLock;

public class Test1 {

    public static void main(String[] args) throws InterruptedException {

        System.out.println("start");
        synchronized (Test1.class){
            Test1.class.wait(1000);
        }

        System.out.println("end");

        AtomicInteger atomicInteger = new AtomicInteger();
        atomicInteger.incrementAndGet();
    }

}
